{
    "layer": "top", // Waybar at top layer
    "height": 30, // Waybar height (to be removed for auto height)
    "spacing": 4, // Gaps between modules (4px)
    
    "modules-left": ["clock" , "custom/weather"],
    "modules-center": ["wlr/workspaces"],

    "modules-right": ["cpu", "temperature", "memory", "pulseaudio", "network",
    	"keyboard-state", "battery" , "tray"],

// Left

   "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
	"format": " {:%H:%M}" ,
        "format-alt": "{:%Y-%m-%d}"
    },


   "custom/weather" : {
        "tooltip" : true,
        "format" : "{}",
        "interval" : 30,
        "exec" : "python ~/.config/waybar/weather.py",
        "return-type" : "json",
	"interval": 1800
    },

// Center

   "wlr/workspaces": {
     "format": "{icon}",
     "on-scroll-up": "hyprctl dispatch workspace e+1",
     "on-scroll-down": "hyprctl dispatch workspace e-1",
     "on-click": "activate",
     "all-outputs": false,
 //    "format": "{icon}",
 //    "format-icons": {
 //            "urgent": "",
 //            "focused": "",
 //            "default": ""
 //        }
    },

// Right

    "cpu": {
        "format": "{usage}% ",
	"interval": 1
    },

    "temperature": {
        // "thermal-zone": 2,
        // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
        "critical-threshold": 80,
        "format": "{temperatureC}°C ",
        "format-critical": "{temperatureC}°C ",
        //"format-icons": [""],
	"interval": 5
    },


    "memory": {
        "format": "{used:0.1f}G "
    },

    "pulseaudio": {
        // "scroll-step": 1, // %, can be a float
        // "format": "{volume}% {icon} {format_source}",
	"format": "{volume}% {icon}",

        "format-bluetooth": "{volume}% ",
        "format-bluetooth-muted": " ",
        "format-muted": "",
        // "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
        },
        "on-click": "amixer set Master toggle"
    },

    "network": {
        "format-wifi": " {bandwidthDownBits} ",
    //    "format-wifi": " {bandwidthDownBits}  {bandwidthUpBits} ",
        "tooltip-format": "{ifname} via {gwaddr} 󰖩",
        "format-linked": "{ifname} (No IP) 󰌷",
   //     "format-disconnected": "",
        "format-alt": " {bandwidthUpBits} ",

	"interval": 2
    },

    "hyprland/language": {
        "format": "{short} "
    },

    "battery": {
        "states": {
	    "warning": 30,
            "critical": 15
        },
        "format": "{capacity}% {icon}",
        
	"format-charging": "{capacity}% ",
        "format-plugged": "{capacity}% ",
        "format-alt": "{time} {icon}",
        "format-icons": ["", "", "", "", ""],
	"interval": 10
    },

    "wlr/mode": {
        "format": "<span style=\"italic\">{}</span>"
    },
    
    "tray": {
        // "icon-size": 21,
        "spacing": 10
    },     
  }
}

